package ai_role_api

import (
	"github.com/gin-gonic/gin"
	"muziai-server/global"
	"muziai-server/models"
	"muziai-server/utils/res"
)

func (AiRoleApi) AiRoleIDTitleOptionsView(c *gin.Context) {
	var list []models.Options[uint]
	global.DB.Model(models.AiRoleModel{}).
		Select("title as label", "id as value").Scan(&list)
	res.OkWithData(c, list)
}
